package com.lee.kt03

/**
 * Created by 15210 on 2017/6/1.
 */

fun main(args : Array<out String>){
    /*
        User user = new User(0,"lee");
        System.out.println(user);
        这里java代码copy过来会自动转变为kotlin代码
     */
    val user = User(0, "lee")
    println(user)

    HelloKontlin::class.constructors.map(::println)
    /*
        使用切记在build.gradle中配置下面这行 否则会报错

        compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

        KotlinReflectionNotSupportedError
        Kotlin reflection implementation is not found at rentime
        Make sure you have kotlin-reflect.jar in the classpath
     */
}

class HelloKontlin{
    fun hello(){

    }
}